//
//  NXScrollSegementView.h
//  NXScrollPageView
//
//  Created by N-X on 2018/3/24.
//  Copyright © 2018年 MRNAN. All rights reserved.
//

#import <UIKit/UIKit.h>
@class NXSegementTitleStyle;
typedef void(^TitleLabelClick)(NSInteger index);
@interface NXScrollSegementView : UIView
@property (nonatomic ,strong)NXSegementTitleStyle * titleStyle;
@property(nonatomic,copy)TitleLabelClick titleLabelClickBlock;
/// 初始化方法
- (instancetype)initWithFrame:(CGRect)frame andTitles:(NSArray *)titles segementStyle:(NXSegementTitleStyle *)segementStyle;
/// 根据底部内容view的切换而更新title的滚动和动画效果
- (void)adjustUIWithProgress:(CGFloat)progress fromImdex:(NSInteger)fromIndex toIndex:(NSInteger)toIndex;
- (void)adjustTitleLabelWithIndex:(NSInteger)index;
@end
